﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BFlatCompile.Nodes
{
	public class BooleanConstant : Expression
	{
		public static readonly BooleanConstant True = new BooleanConstant(true);
		public static readonly BooleanConstant False = new BooleanConstant(false);

		public bool Value { get; private set; }

		private BooleanConstant(bool value)
		{
			this.Value = value;
		}

		public override void ResolveCode(Class c, Dictionary<object, object> parents)
		{
			// nothing to resolve
		}

		public override void ResolveClassToThis(Class c)
		{
			// nothing to resolve
		}
	}
}
